package com.payment.system.domain;

import com.payment.common.annotation.Excel;
import com.payment.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品表 sys_shopping_product
 *
 * @author payment
 * @date 2019-08-21
 */
public class ShoppingProduct extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;
    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String productName;
    /**
     * 商品编号
     */
    @Excel(name = "商品编号")
    private String productNumber;
    /**
     * 图片地址
     */
    private String img;
    /**
     * 价格
     */
    @Excel(name = "金额")
    private BigDecimal price;
    /**
     * 描述
     */
    private String remarks;
    /**
     * 销量
     */

    private Integer sales;
    /**
     * 上下架状态
     */
    @Excel(name = "用户性别", readConverterExp = "0=上架,1=下级")
    private String stutas;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 显示积分
     */
    @Excel(name = "积分")
    private Integer showScore;
    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private String createName;
    /**
     * 删除状态0正常 1删除
     */
    private Integer del;
    /**
     * 商品类型0积分类型1app上架类型
     */
    private Integer type;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductNumber(String productNumber) {
        this.productNumber = productNumber;
    }

    public String getProductNumber() {
        return productNumber;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getImg() {
        return img;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public Integer getSales() {
        return sales;
    }

    public void setStutas(String stutas) {
        this.stutas = stutas;
    }

    public String getStutas() {
        return stutas;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    public void setShowScore(Integer showScore) {
        this.showScore = showScore;
    }

    public Integer getShowScore() {
        return showScore;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCreateName() {
        return createName;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    public Integer getDel() {
        return del;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("productName", getProductName())
                .append("productNumber", getProductNumber())
                .append("img", getImg())
                .append("price", getPrice())
                .append("remarks", getRemarks())
                .append("sales", getSales())
                .append("stutas", getStutas())
                .append("createTime", getCreateTime())
                .append("showScore", getShowScore())
                .append("createName", getCreateName())
                .append("del", getDel())
                .toString();
    }
}
